package com.jcl.recruit.elasticsearch.core.tools;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName Wildcard

 * @Author yyliu
 * @Date 2018/11/2 17:22
 * @Version 1.0
 **/
public class Wildcard{
    private Map<String, String> wildcard = new HashMap<>();
    public Map<String, String> getWildcard() {
        return wildcard;
    }
    public void setWildcard(String key, String... values) {
        if(null != values){
            StringBuffer $V1 = new StringBuffer("*");
            for(String s: values){
                $V1.append(s).append("*");
            }
            this.wildcard.put(key, $V1.toString());
        }
    }
}
